import {GithubOutlined} from '@ant-design/icons';
import {DefaultFooter} from '@ant-design/pro-components';
import '@umijs/max';
import React from 'react';

const Footer: React.FC = () => {
  const defaultMessage = '黔ICP备2023000723号-1';
  const currentYear = new Date().getFullYear();
  return (
    <>
      {
        <DefaultFooter
          style={{
            background: 'none',
          }}
          copyright={
            <>
              {currentYear} <a href="https://beian.miit.gov.cn/" target="_blank" rel="noreferrer">{defaultMessage}</a>
            </>
          }
          links={[
            {
              key: '智能BI',
              title: '智能BI',
              href: 'https://minsf-1321591965.cos.ap-shanghai.myqcloud.com/img/扫码_搜索联合传播样式-标准色版.png',
              blankTarget: true,
            },
            {
              key: 'github',
              title: <GithubOutlined/>,
              href: 'https://gitee.com/min_shangfeng/my_bi_new/tree/master',
              blankTarget: true,
            },
          ]}
        />
      }
      {/*{*/}
      {/*  <>*/}
      {/*    <GridContent>{<a href="https://beian.miit.gov.cn/" target="_blank"*/}
      {/*                     rel="noreferrer">{defaultMessage}</a>}*/}
      {/*    </GridContent>*/}
      {/*  </>*/}
      {/*}*/}
    </>
  );
};
export default Footer;
